{template common/contentheader} 
<div class="setcontent">
	<div class="settitle">
		<h3>{lang group_edit:admin}-$group['usergroup_name']</h3>
	</div>
	<div class="setform">
		<form class="pzform" method="post" action="{url admin/usergroup?act=edit&type=$type&submit=1&gid=$group['usergroup_id']}" id="addform">
			<div class="formgroup">
				<label class="formlabel">{lang group_name:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="group_name" id="group_name" value="$group['usergroup_name']"/>
				</div>
				<span class="formhelp">{lang group_name:admin}</span>
			</div>
			
			<div class="formgroup">
				<label class="formlabel">{lang group_key:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="group_key" id="group_key" value="$group['usergroup_key']"/>
				</div>
				<span class="formhelp">{lang group_key_tip:admin}</span>
			</div>
			{if $type=='member'}
			<div class="formgroup">
				<label class="formlabel">{lang group_credits_range:admin}:</label>
				<div class="formcontrol">
					<input type="text" class="small" name="credits_lower" id="credits_lower" value="$group['credits_lower']"/>
					<label>-</label>
					<input type="text" class="small" name="credits_higher" id="credits_higher" value="$group['credits_higher']"/>
				</div>
				<span class="formhelp">{lang group_credits_range:admin}</span>
			</div>
			{/if}
			<div class="formgroup">
				<label class="formlabel">{lang group_color:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="group_color" id="group_color" value="$group['color']"/>
				</div>
				<span class="formhelp">{lang group_color:admin}</span>
			</div>
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang save:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}